import com.agiledeveloper.pcj.ConcurrentPrimeFinder;
import com.agiledeveloper.pcj.SequentialPrimeFinder;

public class AppCh2 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println("processors: " + Runtime.getRuntime().availableProcessors());
		// Integer.valueOf(Runtime.getRuntime().availableProcessors()).toString()
		// SequentialPrimeFinder.main(new String[]{"10000000"});

		ConcurrentPrimeFinder.main(new String[] { "10000000", Integer.valueOf(Runtime.getRuntime().availableProcessors()).toString(),
				Integer.valueOf(Runtime.getRuntime().availableProcessors()).toString() });

	}

}
